06. Challenge 2 Solution

Here's my solution:

#include "PrintString.h"

#include <iostream>
#include <string>

void PrintString(std::string str, int n) {
  for (int i = 0; i < n; ++i) {
    std::cout << str << std::endl;
  }
}